
#ifndef TARGETHANDLER_H
#define TARGETHANDLER_H

#include <BMap>
#include <BCamera>
#include <BLight>
#include <BVectorArray>
#include <BLine>

#include <BSphereHandler>

using namespace BWE;

class TargetHandler : public BSphereHandler
{
public:
	TargetHandler();
	~TargetHandler();

protected:
	virtual void render(BRender& render);

	virtual void updateEvent(const BEvent& event);

	virtual bool keyDownEvent(const BKeyEvent& keyEvent);

	virtual bool mouseMoveEvent(const BMouseEvent& mouseEvent);

	virtual bool mouseClickEvent(const BMouseEvent& mouseEvent);

private:
	BHolder<BNode>		_hoveredNode;
	BHolder<BShape>		_hoveredShape;
	BHolder<BNode>		_targetNode;
	BHolder<BShape>		_targetShape;
	int					_transStep;
};

#endif
